home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail.cf / RCS / sendmail.m4,v < prev    next >
Encoding:
Text File  |  1985-10-21  |  17.4 KB  |  801 lines

  1. head     1.3;
  2. access   ;
  3. symbols  ;
  4. locks    dudek:1.3; strict;
  5. comment  @@;
  6.  
  7.  
  8. 1.3
  9. date     85.10.21.19.26.05;  author dudek;  state Exp;
  10. branches ;
  11. next     1.2;
  12.  
  13. 1.2
  14. date     85.10.04.10.28.57;  author dudek;  state Exp;
  15. branches ;
  16. next     1.1;
  17.  
  18. 1.1
  19. date     85.09.04.15.51.33;  author dudek;  state Exp;
  20. branches ;
  21. next     ;
  22.  
  23.  
  24. desc
  25. @@
  26.  
  27.  
  28. 1.3
  29. log
  30. @*** empty log message ***
  31. @
  32. text
  33. @############################################################
  34. ############################################################
  35. #####
  36. #####        SENDMAIL CONFIGURATION FILE
  37. #####
  38. ############################################################
  39. ############################################################
  40.  
  41. ######################
  42. #   General Macros   #
  43. ######################
  44.  
  45. # local domain names
  46. DDHARVARD.EDU
  47.  
  48. # my official hostname
  49. Dj$w.$D
  50.  
  51. # known top-level domains (other than ARPA domains)
  52. CDLOCAL UUCP BITNET DEC UTEXAS CSNET MAILNET CCNET
  53. # known ARPA domains
  54. CAARPA EDU COM GOV MIL ORG US
  55. # domains with ARPA gateways
  56. CCDEC UTEXAS CSNET MAILNET
  57. # known BITNET domains, or domains with BITNET gateways
  58. CFBITNET CCNET
  59.  
  60. # known local hosts; x@@localhost -> x@@localhost.LOCAL
  61.  
  62. # science center - UNIX
  63. CLh-sc8 husc8 thor sc8 harvsc8 harvunxd
  64. CLh-sc7 husc7 loki sc7 harvsc7 harvunxc
  65. CLh-sc4 husc4 odin sc4 harvsc4 harvunxu
  66. CLh-sc1 husc1 asgard sc1 harvsc1 harvunxa
  67. CLh-sc2 husc2 bifrost sc2 harvsc2 harvunxb
  68. CLh-lit1 hulit1 littauer lit1 harvlit1 harvunxl
  69. CLh-ma1 huma1 math ma1 harvma1 harvunxm
  70.  
  71. # science center - VMS
  72. CLh-sc3 husc3 roscoe rvms sc3 harvsc3
  73. CLh-sc5 husc5 sylvie svms sc5 harvsc5
  74. CLh-law1 hulaw1 law1 lvms harvlaw1
  75.  
  76. # william james
  77. CLtalcott husoc1 h-soc1 soc1 harvunxt
  78. CLpitirim husoc2 h-soc2 soc2
  79. CLwjh12 hupsr1 h-psr1 psr1 harvunxw
  80.  
  81. # aiken/DAS
  82. CLharvard harvunxh
  83. CLdasy
  84. CLgauss
  85. CLturing
  86. CLgodel
  87. CLboole
  88. CLherebrand
  89. CLrabin
  90. CLatrios
  91. CLzeos
  92. CLpeladon
  93. CLtraken
  94. CLribos
  95. CLskaro
  96. CLharry
  97. CLeleanor
  98. CLchimera
  99.  
  100. # other harvard sites
  101. CLbiochem
  102. CLlhasa
  103. CLharvarda
  104. CLharvchem
  105. CLhurob1
  106. CLtardis
  107.  
  108. include(relays)
  109.  
  110. include(hostnets)
  111.  
  112.  
  113. #########################
  114. ###   Trusted users   ###
  115. #########################
  116.  
  117. include(trusted)
  118.  
  119.  
  120. ############################################################
  121. #
  122. #    General configuration information
  123. #
  124. #    This information is basically just "boiler-plate"; it must be
  125. #    there, but is essentially constant.
  126. #
  127. #    Information in this file should be independent of location --
  128. #    i.e., although there are some policy decisions made, they are
  129. #    not specific to Berkeley per se.
  130. #
  131. #
  132. ############################################################
  133.  
  134. DV4.30
  135.  
  136. ##########################
  137. ###   Special macros   ###
  138. ##########################
  139.  
  140. # my name
  141. DnMAILER-DAEMON
  142. # UNIX header format
  143. DlFrom $g  $d
  144. # delimiter (operator) characters
  145. Do.:%@@!^=/[],;
  146. # format of a total name
  147. Dq$g$?x ($x)$.
  148. # SMTP login message
  149. De$w.$D Sendmail $v/$V ready at $b
  150.  
  151. ###################
  152. ###   Options   ###
  153. ###################
  154.  
  155. # location of alias file
  156. OA/usr/lib/aliases
  157. # default delivery mode (deliver in background)
  158. Odbackground
  159. # (don't) connect to "expensive" mailers
  160. Oc
  161. # rebuild aliases automatically
  162. OD
  163. # temporary file mode
  164. OF0640
  165. # default GID
  166. Og1
  167. # location of help file
  168. OH/usr/lib/sendmail.hf
  169. # log level
  170. OL5
  171. # default messages to old style
  172. Oo
  173. # queue directory
  174. OQ/usr/spool/mqueue
  175. # read timeout -- violates protocols
  176. Or2h
  177. # status file
  178. OS/usr/lib/sendmail.st
  179. # queue up everything before starting transmission
  180. #Os
  181. # default timeout interval
  182. OT3d
  183. # time zone names (V6 only)
  184. OtPST,PDT
  185. # default UID
  186. Ou1
  187. # wizard's password
  188. OWBRQTQQvpCSGFg
  189.  
  190.  
  191. ###############################
  192. ###   Message precedences   ###
  193. ###############################
  194.  
  195. Pfirst-class=0
  196. Pspecial-delivery=100
  197. Pjunk=-100
  198.  
  199. #############################
  200. ###   Format of headers   ###
  201. #############################
  202.  
  203. H?P?Return-Path: <$g>
  204. H?R?Received: $?sfrom $s $.by $j$?r with $r$.; $b
  205. H?D?Date: $a
  206. H?F?Resent-From: $q
  207. H?F?From: $q
  208. HSubject:
  209.  
  210.  
  211. ###########################
  212. ###   Rewriting rules   ###
  213. ###########################
  214.  
  215.  
  216. ################################
  217. #  Sender Field Pre-rewriting  #
  218. ################################
  219. S1
  220.  
  221. ###################################
  222. #  Recipient Field Pre-rewriting  #
  223. ###################################
  224. S2
  225.  
  226. #################################
  227. #  Final Output Post-rewriting  #
  228. #################################
  229. S4
  230.  
  231. R@@            $@@                handle <> error addr
  232.  
  233. # externalize local domain info
  234. R$*<$*.LOCAL>        $1<$2>                change local info
  235.  
  236. R$*<$+>$*        $1$2$3                defocus
  237.  
  238. ###########################
  239. #  Name Canonicalization  #
  240. ###########################
  241. S3
  242.  
  243. # handle "from:<>" special case
  244. R<>            $@@@@                turn into magic token
  245.  
  246. # basic textual canonicalization
  247. R$*<$+>$*        $2                basic RFC821/822 parsing
  248. R$+ at $+        $1@@$2                "at" -> "@@" for RFC 822
  249.  
  250. # handle route-addr
  251. #  @@a,@@b:user@@c    <=> @@b:user@@c<@@a>        (focus added below)
  252. R@@$+,@@$+:$+        $:@@$2:$3@@$1
  253. #  @@a:user@@b     <=> :user@@b<@@a>            (focus added below)
  254. R@@$+:$+            $::$2@@$1
  255.  
  256. # focus on destination host.domain
  257. R$+@@$+            $:$1<@@$2>            focus on domain
  258. R$+<$+@@$+>        $1$2<@@$3>            move gaze right
  259. # canonical - do local rewriting
  260. R$+<@@$+>        $@@$>6$1<@@$2>
  261.  
  262. # convert old-style addresses to a domain-based address
  263. # (has to come after recognition of user@@site, else bad recursion)
  264. #
  265. # user%host
  266. R$+%$+            $:$1<@@$2>            user%host
  267. R$+<@@$+%$+>        $1%$2<@@$3>            move right
  268. R$+<@@$*>        $@@$>6$1<@@$2>            already canonical
  269. #
  270. # host^user or host!user
  271. R$+^$+            $1!$2                convert ^ to !
  272. R$-!$+            $:$2<@@$1>            resolve uucp names
  273. R$+<@@$=L>        $@@$>6$1<@@$2>            local site - no domain
  274. R$+<@@$->        $@@$>6$1<@@$2.UUCP>        add UUCP domain
  275. # this relies on matching the FIRST "!" in the address
  276. R$-.$+!$+        $@@$>6$3<@@$1.$2>            harvard.ARPA!root
  277.  
  278. #
  279. # host:user
  280. # Note ":" parsed after "!" so that site1!site2:user parsed as
  281. #  site2:user<@@site1.UUCP>
  282. R$-:$+            $@@$>6$2<@@$1>            host:user
  283. # this relies on matching the FIRST ":" in the address
  284. R$-.$+:$+        $@@$>6$3<@@$1.$2>            harvard.ARPA:root
  285.  
  286. #################################
  287. #  Local Name Canonicalization  #
  288. #################################
  289. S6
  290.  
  291. # Make canonical (using /etc/hosts)
  292. R$*<@@$=L>        $:$1<@@$[$2$]>
  293. R$*<@@$=L.$=D>        $:$1<@@$[$2$].$3>
  294. R$*<@@$-.$D>        $:$1<@@$[$2$].$D>
  295.  
  296. # Pass thru mail specifier
  297. R$*;$-<@@$*>        $1<@@$3;$2>
  298.  
  299.  
  300. ############################################################
  301. ############################################################
  302. #####
  303. #####        RULESET ZERO
  304. #####
  305. ############################################################
  306. ############################################################
  307.  
  308. S0
  309.  
  310. # handle special cases.....
  311. R@@            $#local$:MAILER-DAEMON    handle <> form
  312. R$*<@@[$+]>        $#arpa$@@[$2]$:$1@@[$2]    numeric internet spec ?
  313.  
  314. ##################################
  315. #  End of ruleset zero preamble  #
  316. ##################################
  317.  
  318. #
  319. # find our host
  320. R$+<@@$w>        $@@$>7$1            user@@harvard
  321. R$+<@@$w.$D>        $@@$>7$1            user@@harvard.HARVARD.EDU
  322. R$+<@@$w.ARPA>        $@@$>7$1            user@@harvard.ARPA (sigh)
  323. R$+<@@$w.$=D>        $@@$>7$1            user@@harvard.BITNET
  324.  
  325. #
  326. # watch for uucp-type forwarding to ARPA
  327. R$w!$+<@@$+>        $1@@$2            harvard!USER@@SITE.ARPA
  328. R$w:$+<@@$+>        $1@@$2            harvard:USER@@SITE.ARPA
  329.  
  330. # find local hosts
  331. R$*<@@$=L>        $1<@@$2.LOCAL>        horton@@aiken
  332. R$*<@@$=L.$=D>        $:$1<@@$2.LOCAL>        horton@@aiken.bitnet
  333. R$*<@@$-.$D>        $:$1<@@$2.LOCAL>        horton@@aiken.harvard.edu
  334.  
  335. #
  336. # mailer specified addresses
  337. #
  338. ifdef(`BITNETRELAY',
  339. `# force to BITNET relay
  340. R$*<@@$*;bitnet>        $@@$>0$1@@$2;bitnet<@@$F.LOCAL>
  341. R$*<@@$*;ccnet>        $@@$>0$1@@$2;ccnet<@@$F.LOCAL>'
  342. ,
  343. `# force to BITNET
  344. R$*<@@$*;bitnet>        $#bitnet$@@$2$:$1
  345. # problem here - does mailer need user@@site.CCNET for destination???
  346. R$*<@@$*;ccnet>        $#ccnet$@@$2$:$1'
  347. )
  348.  
  349. ifdef(`ARPARELAY',
  350. `# force to ARPA relay
  351. R$*<@@$*;arpa>        $@@$>0$1@@$2;arpa<@@$C.LOCAL>'
  352. ,
  353. `# force to ARPA
  354. R$*<@@$*;arpa>        $#arpa$@@$2$:$1<@@$2>'
  355. )
  356.  
  357. # force to uucp
  358. R$*<@@$*;uucp>        $#uucp$@@$2$:$1
  359.  
  360. # force to pathalias
  361. R$*<@@$*;pathalias>    $#pathsend$@@$2:$1
  362.  
  363. # force to ether
  364. R$*<@@$*;ether>        $#ether$@@$2$:$1
  365.  
  366. #
  367. # non-local addresses
  368. #
  369. ifdef(`PATHALIAS',
  370. `# uucp (non-direct) to non-local host - try pathalias
  371. R$*<@@$*.UUCP>        $#pathsend$@@$2$:$1    user@@somewhere.UUCP
  372. R$*<@@$*;nopath>        $1<@@$2>            already tried pathalias'
  373. ,`')
  374. ifdef(`ARPARELAY',`',
  375. `# resolve tcp uucp links
  376. R$*<@@$=X.UUCP>        $#tcpuucp$@@$2$:$1'
  377. )
  378. # uucp direct to non-local host
  379. R$*<@@$=E.UUCP>        $#uucp$@@$2$:$1        person@@remoteuucphost
  380.  
  381. ifdef(`UUCPRELAY',
  382. `# uucp (non-direct) to non-local host - send to UUCP relay host
  383. R$*<@@$*.UUCP>        $1@@$2.UUCP<@@$E.LOCAL>    user@@somewhere.UUCP'
  384. ,
  385. `# uucp to unknown host - error
  386. R$*<@@$*.UUCP>        $#error$@@$2$:UnknownHost'
  387. )
  388.  
  389. ifdef(`BITNETRELAY',
  390. `# BITNET to non-local host - send to local BITNET relay
  391. R$*<@@$*.$=F>        $1@@$2.$3<@@$F.LOCAL>    user@@somewhere.BITNET'
  392. ,
  393. `# BITNET to non-local host direct
  394. R$*<@@$*.BITNET>        $#bitnet$@@$2$:$1
  395. R$*<@@$*.CCNET>        $#ccnet$@@$2$:$1@@$2.CCNET'
  396. )
  397.  
  398. ifdef(`ARPARELAY',
  399. `# ARPA to non-local host - send to local ARPA relay
  400. R$*<@@$*.$=A>        $1@@$2.$3<@@$C.LOCAL>    user@@somewhere.ARPA
  401. R$*<@@$*.$=C>        $1@@$2.$3<@@$C.LOCAL>    user@@somewhere.CSNET'
  402. ,
  403. `# ARPA to non-local host direct
  404. R$*<@@$-.$*$=A>        $#arpa$@@$2.$3$4$:$1<@@$2.$3$4>
  405. R$*<@@$*.DEC>        $#arpa$@@decwrl$:$1<@@$2.DEC>
  406. R$*<@@$*.UTEXAS>        $#arpa$@@ut-sally$:$1<@@$2.UTEXAS>
  407. R$*<@@$*.CSNET>        $#arpa$@@csnet-relay$:$1<@@$2.CSNET>
  408. R$*<@@$*.MAILNET>    $#arpa$@@mit-multics$:$1<@@$2.MAILNET>'
  409. )
  410.  
  411. #
  412. # resolve local addresses
  413. #
  414. ifdef(`BITNETRELAY',
  415. `# BITNET to local host - send to local BITNET relay
  416. R$*<@@$=B.LOCAL>        $1@@$2.BITNET<@@$F.LOCAL>'
  417. ,
  418. `# BITNET to local host direct
  419. R$*<@@$=B.LOCAL>        $#bitnet$@@$2$:$1'
  420. )
  421.  
  422. # tcp to local host
  423. R$*<@@$=G.LOCAL>        $#ether$@@$2$:$1        person@@localetherhost
  424.  
  425. # uucp to local host
  426. R$*<@@$=E.LOCAL>        $#uucp$@@$2$:$1        person@@localuucphost
  427.  
  428. include(relayrules)
  429.  
  430. # to other local hosts - send to local generic LOCAL relay
  431. R$*<@@$=L.LOCAL>        $@@$>0$1@@$2<@@$L.LOCAL>
  432.  
  433. # ??
  434. R$*<$*.$*>$*        $#error$@@x$:UnknownDomain
  435. R$*<@@$*>$*        $#error$@@x$:UnknownLocalHost
  436.  
  437. # remaining names must be local
  438. R$+            $#local$:$1        everything else
  439.  
  440.  
  441. #####################################################
  442. #  Code to retry through Rulesets 3 and 0           #
  443. #####################################################
  444. S7
  445.  
  446. # Make canonical
  447. R$+            $:$>3$1
  448. # Retry
  449. R$+            $@@$>0$1
  450.  
  451.  
  452. ############################################################
  453. ############################################################
  454. #####
  455. #####        Local and Program Mailer specification
  456. #####
  457. ############################################################
  458. ############################################################
  459.  
  460. Mlocal,    P=/bin/mail, F=rlsFmn, S=10, R=20, A=mail -d $u
  461. Mprog,    P=/bin/sh,   F=lsF,   S=10, R=20, A=sh -c $u
  462.  
  463. S10
  464. R@@            MAILER-DAEMON            errors to mailer-daemon
  465.  
  466. S20
  467.  
  468. ############################################################
  469. ############################################################
  470. #####
  471. #####        LOCAL(!!) smtp (tcp/ip) mailer spec
  472. #####
  473. ############################################################
  474. ############################################################
  475.  
  476. Mether,    P=[IPC], F=msFueX, S=11, R=21, A=IPC $h
  477.  
  478. S11
  479. R$*<@@$+>        $@@$1<@@$2>            already ok
  480. R$+            $@@$1<@@$w>            tack on our hostname
  481.  
  482. S21
  483.  
  484. ############################################################
  485. ############################################################
  486. #####
  487. #####        PATHALIAS Mailer specification
  488. #####
  489. ############################################################
  490. ############################################################
  491.  
  492. Mpathsend,    P=/toe/staff/dudek/bin/pathsend, F=humv, S=12, R=22,
  493.     A=pathsend $u@@$h
  494.  
  495. S12
  496.  
  497. S22
  498.  
  499. ############################################################
  500. ############################################################
  501. #####
  502. #####        UUCP Mailer specification
  503. #####
  504. ############################################################
  505. ############################################################
  506.  
  507.  
  508. Muucp,    P=/usr/bin/uux, F=shuUm, S=13, R=23, M=150000, A=uux - $h!rmail ($u)
  509. Mtcpuucp, P=[IPC], F=msRFueX, S=13, R=23, A=IPC $h
  510.  
  511. S5
  512. R$+<@@$*.UUCP>        $@@$2!$1            u@@host.UUCP => host!u
  513. R$+<@@$+>        $@@$2!$1            u@@host.ARPA => host.ARPA!u
  514.  
  515. S13
  516. R$+            $:$>5$1            convert to old style
  517. R$w!$+            $1            strip local name
  518. R$+            $:$w!$1            stick on our host name
  519.  
  520. S23
  521. R$+            $:$>5$1            convert to old style
  522.  
  523. ############################################################
  524. ############################################################
  525. #####
  526. #####        Arpanet TCP Mailer specification
  527. #####
  528. ############################################################
  529. ############################################################
  530.  
  531. Marpa,    P=[IPC], F=msDFMueXL, S=14, R=24, A=IPC $h, E=\r\n
  532.  
  533. S14
  534.  
  535. # output local hosts in user%host@@harvard syntax
  536. R$+<@@$=L>        $@@$1%$2<@@$w.$D>        local hosts
  537.  
  538. # pass route-addrs through, tacking on our hostname
  539. #  @@b:user@@c<@@a> <=> @@harvard.harvard.edu,@@a,@@b:user@@c
  540. R@@$+:$+<@@$+>        $@@@@$w.$D,@@$3,@@$1:$2
  541. #  :user@@b<@@a> <=> @@harvard.harvard.edu,@@a:user@@b
  542. R:$+<@@$+>        $@@@@$w.$D,@@$2:$1
  543.  
  544. # forward from domains other than ARPA domains
  545. R$+<@@$+.$=D>        $@@$1%$2.$3<@@$w.$D>    user@@host.DOMAIN
  546.  
  547. # handle other external cases
  548. R$+<@@$+>        $@@$1<@@$2>
  549.  
  550. # otherwise, just stick on our hostname
  551. R$+            $@@$1<@@$w.$D>
  552.  
  553. S24
  554.  
  555. # handle route-addr (strip next host)
  556. #  @@b:user@@c<@@a> <=> @@b:user@@c
  557. R@@$+:$+<@@$+>        $@@@@$1:$2
  558. #  :user@@b<@@a>     <=> user@@b
  559. R:$+<@@$+>        $@@$1
  560.  
  561.  
  562.  
  563. ############################################################
  564. ############################################################
  565. #####
  566. #####        BITNET Mailer specification
  567. #####
  568. ############################################################
  569. ############################################################
  570.  
  571.  
  572. Mbitnet, P=/usr/lib/rscs/rscs%mail, F=RSsnF, S=15, R=25, M=150000,
  573.     A=rscsmail $f $h $u
  574. Mccnet, P=/usr/lib/rscs/rscs%mail, F=SsnF, S=15, R=25, M=100000,
  575.     A=rscsmail $f$h$u cuvma mailer
  576.  
  577. S15
  578. R$*<@@$*.BITNET>        $@@$1@@$2.BITNET
  579. R$+<@@$+>        $1%$2
  580. R$+            $:$1@@$B.BITNET            stick on our name
  581.  
  582. S25
  583. @
  584.  
  585.  
  586. 1.2
  587. log
  588. @*** empty log message ***
  589. @
  590. text
  591. @d113 1
  592. a113 1
  593. Do.:%@@!^=/[],
  594. d240 3
  595. a242 3
  596. R$-!$+            $:$>6$2<@@$1>            resolve uucp names
  597. R$+<@@$=L>        $@@$1<@@$2>            local site - no domain
  598. R$+<@@$->        $@@$1<@@$2.UUCP>            add UUCP domain
  599. a258 4
  600. # Find local hosts and strip domains
  601. R$*<@@$=L.$=D>        $1<@@$2>
  602. R$*<@@$-.$D>        $1<@@$2>
  603.  
  604. d260 3
  605. a262 1
  606. R$*<@@$->        $:$1<@@$[$2$]>
  607. d264 2
  608. d267 1
  609. d282 3
  610. a284 4
  611. #
  612. # watch for uucp-type forwarding to ARPA
  613. R$=w!$+<@@$+>        $@@$>7$2@@$3        harvard!USER@@SITE.ARPA
  614. R$=w:$+<@@$+>        $@@$>7$2@@$3        harvard:USER@@SITE.ARPA
  615. d293 4
  616. a296 3
  617. ##################################
  618. #  End of ruleset zero preamble  #
  619. ##################################
  620. d300 2
  621. d308 2
  622. a309 2
  623. R$*<@@$*:bitnet>        $@@$>0$1@@$2:bitnet<@@$F.LOCAL>
  624. R$*<@@$*:ccnet>        $@@$>0$1@@$2:ccnet<@@$F.LOCAL>'
  625. d312 1
  626. a312 1
  627. R$*<@@$*:bitnet>        $#bitnet$@@$2$:$1
  628. d314 1
  629. a314 1
  630. R$*<@@$*:ccnet>        $#ccnet$@@$2$:$1'
  631. d319 1
  632. a319 1
  633. R$*<@@$*:arpa>        $@@$>0$1@@$2:arpa<@@$C.LOCAL>'
  634. d322 1
  635. a322 1
  636. R$*<@@$*:arpa>        $#arpa$@@$2$:$1<@@$2>'
  637. d326 1
  638. a326 1
  639. R$*<@@$*:uucp>        $#uucp$@@$2$:$1
  640. d329 1
  641. a329 1
  642. R$*<@@$*:pathalias>    $#pathsend$@@$2:$1
  643. d332 1
  644. a332 1
  645. R$*<@@$*:ether>        $#ether$@@$2$:$1
  646. d337 9
  647. d349 1
  648. a349 4
  649. ifdef(`PATHALIAS',
  650. `# uucp (non-direct) to non-local host - try pathalias
  651. R$*<@@$*.UUCP>        $#pathsend$@@$2$:$1    user@@somewhere.UUCP'
  652. ,
  653. d352 3
  654. d460 1
  655. a460 1
  656. Mpathsend,    P=/toe/staff/dudek/bin/pathsend, F=hum, S=12, R=22,
  657. a474 2
  658. Muucp,    P=/usr/bin/uux, F=shuUm, S=13, R=23, M=150000,
  659.     A=uux - $h!rmail ($u)
  660. d476 3
  661. d485 1
  662. a485 1
  663. R$w!$+            $2            strip local name
  664. d489 1
  665. @
  666.  
  667.  
  668. 1.1
  669. log
  670. @Initial revision
  671. @
  672. text
  673. @a8 3
  674. # uucp hostname
  675. DB$w
  676.  
  677. d28 1
  678. a28 27
  679. # local hosts with more than one name (sigh)
  680. DZh-sc8
  681. CZh-sc8 thor sc8 harvsc8 harvunxd
  682. DYh-sc7
  683. CYh-sc7 loki sc7 harvsc7 harvunxc
  684. DXh-sc4
  685. CXh-sc4 odin sc4 hscvax unixvax harvsc4 harvunxu
  686. DWh-sc1
  687. CWh-sc1 asgard sc1 aunix harvsc1 harvunxa
  688. DUh-sc3
  689. CUh-sc3 roscoe sc3 rvms harvsc3
  690. DTh-sc5
  691. CTh-sc5 sylvie sc5 svms harvsc5
  692. DSh-lit1
  693. CSh-lit1 littauer lit1 lunix harvlit1
  694. DRh-law1
  695. CRh-law1 law law1 lvms harvlaw1
  696. DQharvard
  697. CQharvard harvunxh
  698. DPtalcott
  699. CPh-soc1 talcott soc1 harvunxt
  700. DOpitirim
  701. COh-soc2 pitirim soc2
  702. DNwjh12
  703. CNh-psr1 wjh12 psr1 harvunxw
  704. DMh-sc2
  705. CMh-sc2 bifrost sc2 bunix harvsc2 harvunxb
  706. a29 1
  707. # known local hosts; x@@localhost -> x@@localhost.LOCAL
  708. d31 8
  709. a38 1
  710. CLh-sc8 h-sc7 h-sc4 h-sc1 h-sc2 h-lit1 h-ma1
  711. d40 4
  712. a43 1
  713. CLh-sc3 h-sc5 h-law1
  714. d45 4
  715. a48 1
  716. CLtalcott pitirim wjh12
  717. d50 1
  718. a50 1
  719. CLharvard
  720. d52 16
  721. a67 3
  722. CLgauss turing godel boole herebrand rabin
  723. CLatrios zeos peladon traken ribos skaro
  724. CLharry eleanor
  725. d73 1
  726. d113 1
  727. a113 1
  728. Do.:%@@!^=/[]
  729. d203 1
  730. d218 6
  731. d242 1
  732. a242 1
  733. R$+<@@$+>        $@@$1<@@$2.UUCP>            add UUCP domain
  734. d259 2
  735. a260 1
  736. # strip our domain and LOCAL for alias processing ???
  737. a261 1
  738. R$*<@@$-.LOCAL>        $1<@@$2>
  739. d263 2
  740. a264 14
  741. # rewrite local names
  742. R$*<@@$=Z>        $@@$1<@@$Z>
  743. R$*<@@$=Y>        $@@$1<@@$Y>
  744. R$*<@@$=X>        $@@$1<@@$X>
  745. R$*<@@$=W>        $@@$1<@@$W>
  746. R$*<@@$=U>        $@@$1<@@$U>
  747. R$*<@@$=T>        $@@$1<@@$T>
  748. R$*<@@$=S>        $@@$1<@@$S>
  749. R$*<@@$=R>        $@@$1<@@$R>
  750. R$*<@@$=Q>        $@@$1<@@$Q>
  751. R$*<@@$=P>        $@@$1<@@$P>
  752. R$*<@@$=O>        $@@$1<@@$O>
  753. R$*<@@$=N>        $@@$1<@@$N>
  754. R$*<@@$=M>        $@@$1<@@$M>
  755. d278 2
  756. a279 2
  757. R@@            $#local$:MAILER-DAEMON        handle <> form
  758. R$*<@@[$+]>        $#arpa$@@[$2]$:$1@@[$2]        numeric internet spec ?
  759. d281 4
  760. a284 3
  761. # recognize local mail
  762. R$*<@@$=w>        $@@$>7$1            horton@@harvard
  763. R$*<@@$=w.$D>        $@@$>7$1            horton@@harvard.harvard.edu
  764. d286 7
  765. d298 1
  766. a298 1
  767. R$*<@@$=L>        $1<@@$2.LOCAL>            horton@@aiken
  768. d325 3
  769. d337 7
  770. a343 2
  771. # uucp (non-direct) to non-local host - send to UUCP relay host
  772. R$*<@@$*.UUCP>        $1@@$2.UUCP<@@$E.LOCAL>    user@@somewhere.UUCP
  773. d360 1
  774. a360 1
  775. R$*<@@$-.$*$=A>        $#arpa$@@$2$:$1<@@$2.$3$4>
  776. d372 1
  777. a372 1
  778. R$*<@@$=B.LOCAL>        $1@@$2.LOCAL<@@$F.LOCAL>'
  779. d422 2
  780. d443 15
  781. a462 2
  782. Mpathuucp,    P=/usr/lib/uucp/pathuux, F=shuUm, S=13, R=23, M=150000,
  783.     A=pathuux $h $u
  784. d467 2
  785. a468 1
  786. R$+<@@$*.UUCP>        $2!$1                u@@host.UUCP => host!u
  787. d471 3
  788. a473 3
  789. R$+            $:$>5$1                convert to old style
  790. R$w!$+            $2                strip local name
  791. R$+            $:$B!$1                stick on our host name
  792. d490 1
  793. a490 1
  794. R$+<@@$=L>        $@@$1%$2$3<@@$w.$D>        local hosts
  795. d492 6
  796. d499 1
  797. a499 1
  798. R$+<@@$+.$=D>        $@@$1%$2.$3<@@$w.$D>        user@@host.DOMAIN
  799. d508 7
  800. @
  801.